<template>
  <div class="dashboard-container">
    <div class="dashboard-editor-container">
      <el-row :gutter="32">
        <el-col :xs="24" :sm="24" :lg="8">
          <div class="chart-wrapper">
            <PieChart />
          </div>
        </el-col>
        <el-col :xs="24" :sm="24" :lg="8">
          <div class="chart-wrapper">
            <BarChart />
          </div>
        </el-col>
        <el-col :xs="24" :sm="24" :lg="8">
          <div class="chart-wrapper">
            <RadarChart />
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
import PieChart from '@/components/echarts/PieChart' // 饼图
import BarChart from '@/components/echarts/BarChart' // 柱状图
import RadarChart from '@/components/echarts/RadarChart' // 雷达图

export default {
  name: 'Dashboard',
  components: {
    PieChart,
    BarChart,
    RadarChart
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.dashboard-editor-container {
  padding: 18px 22px 22px 22px;
  background-color: rgb(240, 242, 245);
  .chart-wrapper {
    background: #fff;
    padding: 16px 16px 0;
    margin-bottom: 32px;
  }
}
</style>
